package swu.edu.cn.javaee.entity;

import org.apache.catalina.LifecycleState;
import org.apache.ibatis.type.Alias;



import java.util.List;
@Alias("searchinfo")
public class SearchInfo {
    private String code;
    private List<Product> products;
    private List<Merchant> merchants;

    public SearchInfo(){
        this.code="";
        this.products=null;
        this.merchants=null;
    }

    @Override
    public String toString() {
        return "SearchInfo{" +
                "code='" + code + '\'' +
                ", products=" + products +
                ", merchants=" + merchants +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    public List<Merchant> getMerchants() {
        return merchants;
    }

    public void setMerchants(List<Merchant> merchants) {
        this.merchants = merchants;
    }
}
